package com.ruoyi.projects.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 小程序、商户相关配置对象 _wechat_config
 * 
 * @author ruoyi
 * @date 2022-01-06
 */
public class WechatConfig extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 商户号 */
    @Excel(name = "商户号")
    private String mchId;

    /** 商户Key */
    @Excel(name = "商户Key")
    private String mchKey;

    /** 小程序appid */
    @Excel(name = "小程序appid")
    private String miniAppId;

    /** 小程序appSecret */
    @Excel(name = "小程序appSecret")
    private String miniAppSecret;

    /** 签名（“MD5”，“HMACSHA256”） */
    @Excel(name = "签名", readConverterExp = "“=MD5”，“HMACSHA256”")
    private String signType;

    /** 支付回调地址 */
    @Excel(name = "支付回调地址")
    private String notifyUrl;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setMchId(String mchId) 
    {
        this.mchId = mchId;
    }

    public String getMchId() 
    {
        return mchId;
    }
    public void setMchKey(String mchKey) 
    {
        this.mchKey = mchKey;
    }

    public String getMchKey() 
    {
        return mchKey;
    }
    public void setMiniAppId(String miniAppId) 
    {
        this.miniAppId = miniAppId;
    }

    public String getMiniAppId() 
    {
        return miniAppId;
    }
    public void setMiniAppSecret(String miniAppSecret) 
    {
        this.miniAppSecret = miniAppSecret;
    }

    public String getMiniAppSecret() 
    {
        return miniAppSecret;
    }
    public void setSignType(String signType) 
    {
        this.signType = signType;
    }

    public String getSignType() 
    {
        return signType;
    }
    public void setNotifyUrl(String notifyUrl) 
    {
        this.notifyUrl = notifyUrl;
    }

    public String getNotifyUrl() 
    {
        return notifyUrl;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("mchId", getMchId())
            .append("mchKey", getMchKey())
            .append("miniAppId", getMiniAppId())
            .append("miniAppSecret", getMiniAppSecret())
            .append("signType", getSignType())
            .append("notifyUrl", getNotifyUrl())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
